CMAKE_MINIMUM_REQUIRED (VERSION 3.10)
PROJECT(somb C )

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g ")

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/inc)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/auto)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/nanopb)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/yaml/inc)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

#add directories for include and link the yaml
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/output/lib)

SET(PROJECT_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/output)
add_subdirectory(3rdparty/nanopb)
#add_subdirectory(3rdparty/yaml//libyaml-0.2.5)
add_subdirectory(3rdparty/yaml/)
#add_subdirectory(auto)
add_subdirectory(src)
add_subdirectory(example)
add_subdirectory(benchmark)
